projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43c1f58
)
Write unknown alts as zero.
author
robertl
<robertl>
Sat, 31 Jul 2004 17:00:36 +0000
(17:00 +0000)
committer
robertl
<robertl>
Sat, 31 Jul 2004 17:00:36 +0000
(17:00 +0000)
garmin.c
patch
|
blob
|
history
diff --git
a/garmin.c
b/garmin.c
index 26e425f67efd2a078b39c517606ae2c7abef63e0..b2c22b026cc85cfe157996f31666d3c3749e6cfc 100644
(file)
--- a/
garmin.c
+++ b/
garmin.c
@@
-464,7
+464,9
@@
waypoint_write(void)
icon = d103_icon_number_from_symbol(wpt->icon_descr);
}
way[i]->smbl = icon;
- if (wpt->altitude != unknown_alt) {
+ if (wpt->altitude == unknown_alt) {
+ way[i]->alt = 0;
+ } else {
way[i]->alt = wpt->altitude;
}
i++;